﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Security.Cryptography;

namespace Lib
{
    public class Encode
    {
        public static string AddKey(string s)
        {
            return s + "drjgbksfjspgh";
        }
         public static string MD5Hash(string input)
        {
            System.Text.Encoding encoding = System.Text.Encoding.ASCII;
            input += "d0Ntb3L13v3";

            MD5 md5 = new MD5CryptoServiceProvider();
            byte[] bRes = md5.ComputeHash(encoding.GetBytes(input));
            string stRes = encoding.GetString(bRes);
            md5.Clear();
            return stRes;
        }
    }
}
